package com.example.allshengmedical.experimentanalyze.activity;

import java.util.ArrayList;
import java.util.List;

import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.TextView;

import com.example.allshengmedical.R;
import com.example.allshengmedical.base.BaseFragment;

//参数设置界面
public class RelativeFragment extends BaseFragment {
	Spinner endogenous_spinner;
	Spinner Biological_spinner;
	Spinner Reference_spinner;
	TextView single_tv;
	TextView Multiplex_tv;
	private List<String> data_list;
	private List<String> Biological_list;
	private List<String> Reference_list;
	private ArrayAdapter<String> arrayAdapter;

	@Override
	public int getlayout() {
		// TODO Auto-generated method stub
		return R.layout.frgment_relative;
	}

	@Override
	protected void initView() {
		// TODO Auto-generated method stub
		// single_tv.setBackgroundColor(R.color.blue);
		// single_tv.setTextColor(R.color.white);,
	}

	@Override
	protected void dataView() {
		// TODO Auto-generated method stub
		data_list = new ArrayList<String>();
		data_list.add("BCL2");
		data_list.add("CDKN1B");
		data_list.add("HPRT1");
		data_list.add("PGK1");
		arrayAdapter = new ArrayAdapter<String>(getActivity(),
				android.R.layout.simple_spinner_item, data_list);
		arrayAdapter
				.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
		endogenous_spinner.setAdapter(arrayAdapter);
		endogenous_spinner.setSelection(3, true);
		Reference_list = new ArrayList<String>();
		Reference_list.add("Brain");
		Reference_list.add("Kidney");
		Reference_list.add("Lung");
		arrayAdapter = new ArrayAdapter<String>(getActivity(),
				android.R.layout.simple_spinner_item, Reference_list);
		arrayAdapter
				.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
		Reference_spinner.setAdapter(arrayAdapter);
		Reference_spinner.setSelection(1, true);
	}

}
